import datetime

t1 = datetime.datetime.now()
# 2019/08/25 13:35:06
print(t1.strftime('%Y/%m/%d %H:%M:%S'))
print(t1.strptime('2015/10/21 16:29:00','%Y/%m/%d %H:%M:%S'))

